package cn.yaboya.basic.service;

import cn.yaboya.basic.query.BaseQuery;
import cn.yaboya.basic.utils.PageList;
import org.springframework.stereotype.Service;


import java.util.List;


public interface IBaseService<T> {

    List<T> loadAll();

    T loadById(Long id);

    void add(T t);

    void update(T t);

    void remove(Long id);

    PageList<T> queryData(BaseQuery baseQuery);

    void batchRem(Long[] ids);
}
